package train48days;

import java.util.Scanner;

public class 最小公倍数 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
            int a = in.nextInt();
            int b = in.nextInt();
            int k = Math.max(a,b);

            while (true){
                if (k%a==0&&k%b==0){
                    System.out.println(k);
                    return;
                }
                k++;
            }
        }
//        Scanner in = new Scanner(System.in);
//        int a = in.nextInt();
//        int b = in.nextInt();
//        for (int i = 1; i <= b; i++) {
//            if ((a*i) % b == 0){
//                System.out.println(a*i);
//                return;
//            }
//        }
    }
